home *** CD-ROM | disk | FTP | other *** search
/ Windows News 2005 November / WNnov2005.iso / Windows / Indispensables / Movie Collection / MovieCollection5403.exe / {app} / template / indexfr.xsl
Extensible Markup Language  |  2005-08-04  |  11KB  |  229 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="html" media-type="text/html; charset=ISO-8859-1"/>
  4.  
  5. <xsl:template match="/">
  6. <html>
  7.    <head>
  8.       <style type="text/css">
  9.          body {
  10.              margin: 0px;
  11.              font-size: 9pt;
  12.              font-family: arial;
  13.              background: #F3F3F3;
  14.          }
  15.          
  16.          p.field_originaltitle
  17.          {
  18.             margin: 0px;
  19.              font-family: Verdana;
  20.              font-size: 12px;
  21.              font-weight: bold;
  22.              color: #C23531;
  23.          }
  24.          
  25.          p.field_title
  26.          {
  27.             margin: 0px;
  28.              font-family: Arial;
  29.              font-size: 25px;
  30.              font-weight: bold;
  31.              color: #C23531;
  32.          }
  33.          
  34.          p.film_itemtitle
  35.          {
  36.             margin: 0px;
  37.             margin-top: 5px;
  38.             margin-left: 5px;
  39.             margin-right: 5px;
  40.              font-family: Arial;
  41.              color: black;
  42.              font-weight: bold;
  43.          }
  44.          
  45.          p.film_item
  46.          {
  47.             margin: 0px;
  48.             margin-left: 5px;
  49.             margin-right: 5px;
  50.              color: #5D85AF;
  51.          }
  52.          
  53.          p.deg0
  54.          {
  55.             margin: 0px;
  56.             margin-left: 5px;
  57.             margin-right: 5px;
  58.             background: url(images/deg_h_bw.gif) no-repeat top left;
  59.          }
  60.          
  61.          p.deg1
  62.          {
  63.             margin: 0px;
  64.             margin-left: 5px;
  65.             margin-right: 5px;
  66.             background: url(images/deg_h_rw.gif) no-repeat top left;
  67.          }
  68.          
  69.          p.deg2
  70.          {
  71.             margin: 0px;
  72.             background: url(images/deg_vb.gif);
  73.          }
  74.          
  75.          p.deg3
  76.          {
  77.             margin: 0px;
  78.             background: url(images/deg_vh.gif);
  79.          }
  80.          
  81.          .bk
  82.          {
  83.             color: black;
  84.          }
  85.          
  86.          div.container { 
  87.              background: #F3F3F3;
  88.              margin: 0px; 
  89.              }
  90.              
  91.          #leftcontent {
  92.              background: #F3F3F3; 
  93.             position: absolute;
  94.             left:0px;
  95.             top:0px;
  96.             width:155px;
  97.             border:0px;
  98.              padding: 2px;
  99.              }
  100.                  
  101.          #topcontent{ 
  102.              background: #F3F3F3; 
  103.             position: relative;
  104.             padding: 0px;
  105.              margin: 0px; 
  106.              }    
  107.              
  108.          #footercontent{ 
  109.             position: relative;
  110.             padding: 0px;
  111.              margin: 0px; 
  112.             background: url(images/deg_v.gif);
  113.              }    
  114.              
  115.          #content{ 
  116.             position: absolute;
  117.             background: #F9F9F9 url(images/clap.gif) no-repeat center center;
  118.              left: 155px;
  119.              padding: 0px;
  120.              margin: 0px; 
  121.              }    
  122.          
  123.          </style>
  124.       </head>
  125.       <body>
  126.          <div class="container">
  127.             <div id="leftcontent">
  128.                <p class="film_item" align="center">
  129.                   <img>
  130.                      <xsl:attribute name="src">images/stars<xsl:value-of select="//column[@field='note']/@value"/>.gif</xsl:attribute>
  131.                   </img>
  132.                </p>
  133.                <p class="film_item"><img src="images/trans_pixel.gif" height="5" /></p>
  134.                
  135.                <p class="film_itemtitle"><img src="images/flech.gif" />  <xsl:value-of select="//column[@field='ref']/@value"/></p>
  136.                <p class="deg1"><img src="images/trans_pixel.gif" height="10" /></p>
  137.                
  138.                <p class="film_item" align="center"><img src="~imagebdd~" border="1" /></p>
  139.                <p class="film_item"><img src="images/trans_pixel.gif" height="10" /></p>
  140.                
  141.                <p class="film_item"><span class="bk">Public visΘ: </span><b><xsl:value-of select="//column[@field='public']/@value"/></b></p>
  142.                <p class="film_item"><span class="bk">DurΘe: </span><b><xsl:value-of select="//column[@field='duree']/@value"/></b> min.</p>
  143.                <p class="film_item"><span class="bk">AnnΘe: </span><b><xsl:value-of select="//column[@field='annee']/@value"/></b></p>
  144.                <p class="film_item"><span class="bk">Vu ? </span>
  145.                   <xsl:if test="(//column[@field='vu']/@value='1')">
  146.                      <img src="images/chk.gif" />
  147.                   </xsl:if>
  148.                   <xsl:if test="not(//column[@field='vu']/@value='1')">
  149.                      <img src="images/unchk.gif" />
  150.                   </xsl:if>
  151.                </p>
  152.                <p class="film_item"><span class="bk">Vu le: </span><b><xsl:value-of select="//column[@field='datevu']/@value"/></b></p>
  153.                <p class="film_item"><span class="bk">Date ajout: </span><b><xsl:value-of select="//column[@field='dateajout']/@value"/></b></p>
  154.                <p class="film_item"><span class="bk">Date sortie: </span><b><xsl:value-of select="//column[@field='datesortie']/@value"/></b></p>
  155.                <p class="film_item"><span class="bk">Date Θdition: </span><b><xsl:value-of select="//column[@field='dateedition']/@value"/></b></p>
  156.                
  157.                <p class="film_itemtitle"><img src="images/flech.gif" />  RΘservation</p>
  158.                <p class="deg1"><img src="images/trans_pixel.gif" height="5" /></p>
  159.                <p class="film_item">
  160.                   <xsl:if test="not(//column[@field='idloc']/@value='')">
  161.                      <b><font color="red">PrΘtΘ</font></b>
  162.                   </xsl:if>
  163.                   <xsl:if test="//column[@field='idloc']/@value=''">
  164.                      <b><font color="green">Disponible</font></b>
  165.                   </xsl:if>
  166.                </p>
  167.             </div>
  168.             
  169.             <div id="content">
  170.                <div id="topcontent">
  171.                   <p class="field_title"><xsl:value-of select="//column[@field='nom']/@value"/></p>
  172.                   <p class="field_originaltitle"><xsl:value-of select="//column[@field='originaltitle']/@value"/></p>
  173.                   <p class="deg3"><img src="images/trans_pixel.gif" height="10" /></p>
  174.                </div>
  175.                <p class="film_itemtitle"><img src="images/flech.gif" />  RΘsumΘ</p>
  176.                <p class="deg0"><img src="images/trans_pixel.gif" height="5" /></p>
  177.                <p class="film_item" style="text-align:justify"> <b><xsl:value-of select="//column[@field='obs']/@value"/></b></p>
  178.                
  179.                <p class="film_itemtitle"><img src="images/flech.gif" />  Le film</p>
  180.                <p class="deg0"><img src="images/trans_pixel.gif" height="5" /></p>
  181.                <p class="film_item"><span class="bk">CatΘgorie: </span><b><xsl:value-of select="//column[@field='categorie']/@value"/></b></p>
  182.                <p class="film_item"><span class="bk">RΘalisateur: </span><b><xsl:value-of select="//column[@field='realisateur']/@value"/></b></p>
  183.                <p class="film_item"><span class="bk">Acteurs: </span><b><xsl:value-of select="//column[@field='acteurs']/@value"/></b></p>
  184.                <p class="film_item"><span class="bk">Producteur: </span><b><xsl:value-of select="//column[@field='producteur']/@value"/></b></p>
  185.                <p class="film_item"><span class="bk">Editeur: </span><b><xsl:value-of select="//column[@field='editeur']/@value"/></b></p>
  186.                <p class="film_item"><span class="bk">Pays: </span><b><xsl:value-of select="//column[@field='pays']/@value"/></b></p>
  187.                
  188.                <p class="film_itemtitle"><img src="images/flech.gif" />  Fiche Technique</p>
  189.                <p class="deg0"><img src="images/trans_pixel.gif" height="5" /></p>
  190.                <p class="film_item"><span class="bk">Langues: </span><b><xsl:value-of select="//column[@field='langues']/@value"/></b></p>
  191.                <p class="film_item"><span class="bk">Sous-titres: </span><b><xsl:value-of select="//column[@field='soustitres']/@value"/></b></p>
  192.                <p class="film_item"><span class="bk">Source: </span><b><xsl:value-of select="//column[@field='source']/@value"/></b></p>
  193.                <p class="film_item"><span class="bk">RΘsolution: </span><b><xsl:value-of select="//column[@field='resolution']/@value"/></b></p>
  194.                <p class="film_item"><span class="bk">Aspect: </span><b><xsl:value-of select="//column[@field='aspectratio']/@value"/></b></p>
  195.                <p class="film_item"><span class="bk">Format VidΘo: </span><b><xsl:value-of select="//column[@field='videoformat']/@value"/></b></p>
  196.                <p class="film_item"><span class="bk">Bitrate: </span><b><xsl:value-of select="//column[@field='videobitrate']/@value"/></b></p>
  197.                <p class="film_item"><span class="bk">Format audio: </span><b><xsl:value-of select="//column[@field='audioformat']/@value"/></b></p>
  198.                <p class="film_item"><span class="bk">Bitrate: </span><b><xsl:value-of select="//column[@field='audiobitrate']/@value"/></b></p>
  199.                <p class="film_item"><span class="bk">FrΘquence: </span><b><xsl:value-of select="//column[@field='framerate']/@value"/></b></p>
  200.                <p class="film_item"><span class="bk">Taille fichiers: </span><b><xsl:value-of select="//column[@field='filessize']/@value"/></b></p>
  201.                <p class="film_item"><span class="bk">Support: </span><b><xsl:value-of select="//column[@field='support']/@value"/></b></p>
  202.                <p class="film_item"><span class="bk">Nbre de supports: </span><b><xsl:value-of select="//column[@field='nbsupports']/@value"/></b></p>
  203.                
  204.                <p class="film_itemtitle"><img src="images/flech.gif" />  Informations complΘmentaires</p>
  205.                <p class="deg0"><img src="images/trans_pixel.gif" height="5" /></p>
  206.                <p class="film_item" style="text-align:justify"> <b><xsl:value-of select="//column[@field='infos']/@value"/></b></p>
  207.                <p class="film_item">Site: 
  208.                   <xsl:if test="not(//column[@field='url']/@value='')">
  209.                      <b>
  210.                      <a target="_blank">
  211.                         <xsl:attribute name="href"><xsl:value-of select="//column[@field='url']/@value"/></xsl:attribute>
  212.                         <xsl:attribute name="title"><xsl:value-of select="//column[@field='url']/@value"/></xsl:attribute>
  213.                         <xsl:value-of select="//column[@field='url']/@short"/>
  214.                      </a>
  215.                      </b>
  216.                   </xsl:if>
  217.                </p>
  218.                <p class="deg2"><img src="images/trans_pixel.gif" height="10" /></p>
  219.             </div>
  220.          </div>
  221.             
  222.             
  223.       </body>
  224.    </html>
  225. </xsl:template>
  226.  
  227. </xsl:stylesheet>
  228.  
  229.